package com.two.service.order.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;


import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PinglunVo {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单id")
    private String oid;

    @ApiModelProperty("菜名")
    private String dishName;

    @ApiModelProperty("餐厅名")
    private Integer rid;

    @ApiModelProperty("价格")
    private String disPrice;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @ApiModelProperty("状态")
    private String status;

    @ApiModelProperty("用户昵称")
    private String usermonicker;

    @ApiModelProperty("退款时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rebackTime;

    @ApiModelProperty("支付宝流水号")
    private String alipayNo;

    @ApiModelProperty("订单状态（0 存在  1 删除）")
    private Integer isDeleted;

    @ApiModelProperty(" 订单编号")
    private String ordersid;

    @ApiModelProperty("商品数量")
    private Integer sum;

    @ApiModelProperty("商品总价")
    private String totalPrice;

    @ApiModelProperty("支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date paymentTime;

    @ApiModelProperty("支付名称")
    private String subject;

    private String productCode;

    @ApiModelProperty("菜品总价")
    private String dishTotalPrice;

    @ApiModelProperty("评论状态（1 可以评论  0 不可评论）")
    private Integer commentCode;

    @ApiModelProperty("菜品图片")
    private String menuImg;

    @ApiModelProperty("评论信息")
    private String comment;


}
